<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="${staticServer}/inc/style/main.css"/>
    <link rel="stylesheet" href="${staticServer}/inc/style/page.css"/>
    <link rel="stylesheet" href="${staticServer}/css/struct_info.css"/>
    <script src="${staticServer}/inc/js/jquery.js"></script>
    <script src="${staticServer}/inc/js/pageset.js"></script>
    <script src="${staticServer}/inc/js/submitter.js"></script>
    <script src="${staticServer}/inc/js/infopad.js?2.2"></script>
    <script type="text/javascript" src="${staticServer}/common/uploadify/jquery.uploadify.js"></script>
    <script type="text/javascript" src="${staticServer}/js/web/uploadImg.js?1.5"></script>

    <link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css"/>
    <script src="${staticServer}/inc/js/datepicker.js"></script>


    <script>
        function receiveGoods(id) {
            var msg = $("#msg").val();
            $.ajax({
                type: 'POST',
                url: 'receiveGoods.htm',
                data: {"id": id, "msg": msg},
                dataType: "text",
                success: function (data) {
                    if (data != null && data == "true") {
                        alert("操作成功!");
                        window.location.href = "${contextPath}/goods/centralDistributionList.htm";
                    } else {
                        alert("操作失败!");
                    }
                },
                error: function () {
                    alert("系统出现问题");
                }
            });

        }


    </script>

</head>
<input type="hidden" id="id" value="<#if goods??>${goods.id}</#if>">
<body>
<div id="home_link">
    <ul>
        <li></li>
        <li>&gt;</li>
        <li>采购管理</li>
        <li>&gt;</li>
        <li class="current">物品领取</li>
    </ul>
</div>

<div id="container">
    <div id="title">物品领取</div>
    <table id="infotable">
        <tr>
            <th>办公地址:</th>
            <td><input id="number" value="${tgGoodsAccount.center_name}" disabled="disabled"></td>
        </tr>

        <tr>
            <th>物品名称:</th>
            <td>
                <input id="number" value="${tgGoodsAccount.item_name}" disabled="disabled"></td>

        </tr>
        <tr>
            <th>物品数量:</th>
            <td><input id="number" value="${tgGoodsAccount.number}" disabled="disabled"/></td>
        </tr>
        <tr>
            <th>备注:</th>
            <td>
                <textarea id="msg" style="width:400px;height: 150px;"></textarea>

            </td>
        </tr>
    </table>
    <div id="controlbar">
        <input type="button" class="submit" onclick="receiveGoods('${tgGoodsAccount.id}')" value="  领  取  "/>
    </div>
</div>

</body>
</html>